package com.xsdl.chain;

import com.xsdl.chain.annonation.Length;
import com.xsdl.chain.annonation.Max;
import com.xsdl.chain.annonation.Min;
import lombok.Data;

@Data
public class User {

    @Length(4)
    private String name;

    @Max(10)
    @Min(18)
    private int age;

    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }
}
